<?php

defined('_JEXEC') or die;
jimport('joomla.application.component.model');

class HellochaoModelHellochao extends JModel
{
    function getHello()
    {
        $db=  JFactory::getDbo();
        $query='SELECT hello FROM #__hellochao';
        $db->setQuery($query);
        $hello=$db->loadResult();
        return $hello;
    }
}
?>
